#include <glib.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>

#define RECV_MAXSIZE 5*1024



void close_server_socketfd();
void send_socket_message(int client_fd, char* send_buf, int send_buf_length);
void send_socket_file(int client_fd, char* file_path);
void destory_socket_client();
int get_ip_mac_address(char** ip_address, char** mac_address);
gboolean tcp_heart_beat_post(char* buf);

//void (*callback)(void);
//void (*rec_cb)(char* buf, char* buf_len, int file_flag);
int init_socket_client(char* server_ip, int server_port, void* callback, void* rec_cb);

